OSDN Git Service

[Implement] #960 自己変容の薬を実装した (飲んだ場合のみ。割れた場合は未実装)
authorHourier <grapefox.whitelucifer.0408@gmail.com>
Wed, 28 Apr 2021 13:29:57 +0000 (22:29 +0900)
committerHourier <grapefox.whitelucifer.0408@gmail.com>
Fri, 30 Apr 2021 12:43:36 +0000 (21:43 +0900)
lib/edit/k_info.txt
lib/edit/misc.txt
src/object-use/quaff-execution.cpp
src/sv-definition/sv-potion-types.h

index e3b9c91..0694009 100644 (file)
@@ -6427,3 +6427,15 @@ F:RES_CURSE
 D:$A faded cloak carved with magical runes.
 D:魔術的なルーンの刻まれた陰気な外套だ。
 
+N:673:自己変容:青く光る
+E:Polymorph:Brilliant blue
+G:!:B
+I:75:54:0
+W:50:0:4:5000
+A:50/4
+P:0:1d1:0:0:0
+D:$Twice the calories, twice the carbs, twice the caffeine,
+D:$ and twice the delicious!
+D:$  It causes polymorph when drunk. 
+D:二倍のカロリー、二倍の炭水化物、二倍のカフェイン、そして二倍おいしい!
+D:それは飲むと自己変容を起こす。
index 557f6d8..b7911d3 100644 (file)
@@ -16,7 +16,7 @@ M:WY:66
 M:R:1298
 
 # Maximum number of items in k_info.txt
-M:K:673
+M:K:674
 
 # Maximum number of vaults in v_info.txt
 M:V:173
index 79b55ab..9573df6 100644 (file)
@@ -435,6 +435,11 @@ void exe_quaff_potion(player_type *creature_ptr, INVENTORY_IDX item)
                 ident = true;
             break;
 
+        case SV_POTION_POLY_SELF:
+            do_poly_self(creature_ptr);
+            ident = true;
+            break;
+
         case SV_POTION_AUGMENTATION:
             if (do_inc_stat(creature_ptr, A_STR))
                 ident = true;
index 8731f64..1304217 100644 (file)
@@ -56,7 +56,7 @@ enum sv_potion_type {
     SV_POTION_INC_DEX = 51,
     SV_POTION_INC_CON = 52,
     SV_POTION_INC_CHR = 53,
-       /* xxx */
+    SV_POTION_POLY_SELF = 54,
     SV_POTION_AUGMENTATION = 55,
     SV_POTION_ENLIGHTENMENT = 56,
     SV_POTION_STAR_ENLIGHTENMENT = 57,