Im currently migrating the Core Set from CTI - Classic into CTI 2.
I will release the cards as i finish them here, the cards will be automatically included into the Teaseviewer's filesystem.
Its the first set ever, so i will post some more informtions about the card functions and preferences.
- [ text ] = Wont be visible when the card is drawn in the slideviewer, it´s just to give you additional information about hidden functionality inside the code.
{ code } = Refers to a variable, wont be visible or replaced when drawn.
- CTI.Number 0131.Core Set.Stroke It!.01 | +
Code: Select all
/**Author: Number0131
* Description:
* This Cards halves the strokerate
* The picture is determined by the choosen gender preferences:
* (Female, Trap, Male)
* The chance to draw this card gets higher if your stroke/time ratio is high.
*/
package Teaseviewer.Cards.Stroke_It.CoreSet;
import Teaseviewer.Cards.CTI_Card;
public class CTI2_CoreSet_Stroke_It_001 extends CTI_Card{
public CTI2_CoreSet_Stroke_It_001(){
super("/Pictures/CTI.Number 0131.Core Set.Stroke It!.01.1.png","Core Set");
settext("Your stroking count is halved.");
}
@Override
public void imagecall() {
if(slideviewer.data.limits.gay && slideviewer.data.limits.gay_priority < 1){
setpicturepath("/Pictures/CTI.Number 0131.Core Set.Stroke It!.01.1.png");
}else{
if(slideviewer.data.limits.lesbian && slideviewer.data.limits.lesbian_priority < 2
&& slideviewer.data.limits.gay && slideviewer.data.limits.lesbian_priority < 2){
setpicturepath("/Pictures/CTI.Number 0131.Core Set.Stroke It!.01.3.png");
}else{
setpicturepath("/Pictures/CTI.Number 0131.Core Set.Stroke It!.01.2.png");
}
}
}
@Override
public int chance(){
System.err.println("halve: " + (int)(5*slideviewer.getStrokeRatio()+1));
return (int)(5*slideviewer.getStrokeRatio())+1;
}
@Override
public void main() {
slideviewer.setStrokerate(slideviewer.getStrokerate()/2);
}
}
- CTI.Number 0131.Core Set.Stroke It!.01.1.png (369.29 KiB) Viewed 7064 times
- CTI.Number 0131.Core Set.Stroke It!.01.2.png (364.67 KiB) Viewed 7064 times
- CTI.Number 0131.Core Set.Stroke It!.01.3.png (376.34 KiB) Viewed 7064 times
- CTI.Number 0131.Core Set.Stroke It!.02 | +
Code: Select all
/**Author: Number0131
* Description:
* This Cards doubles the strokerate
* The chance to draw this card gets higher if your stroke/time ratio is low.
*/
package Teaseviewer.Cards.Stroke_It.CoreSet;
import Teaseviewer.Cards.CTI_Card;
public class CTI2_CoreSet_Stroke_It_002 extends CTI_Card{
public CTI2_CoreSet_Stroke_It_002(){
super("/Pictures/CTI.Number 0131.Core Set.Stroke It!.02.png","Core Set");
settext("Your stroking count is doubled.");
}
@Override
public int chance(){
if(slideviewer.getStrokerate() == 0){
return 0;
}
return (int)Math.min(1000,(50*slideviewer.getTimeRatio()));
}
@Override
public void main() {
slideviewer.setStrokerate(slideviewer.getStrokerate()*2);
}
}
- CTI.Number 0131.Core Set.Stroke It!.02.png (441.16 KiB) Viewed 7056 times
- CTI.Number 0131.Core Set.Stroke It!.03 | +
Code: Select all
/* Author: Number0131
* Description:
* Strokecount = 5
* The chance to draw this card gets higher if the slideduration is near 5.
*/
package Teaseviewer.Cards.Stroke_It.CoreSet;
import Teaseviewer.Cards.CTI_Card;
public class CTI2_CoreSet_Stroke_It_003 extends CTI_Card{
public CTI2_CoreSet_Stroke_It_003(){
super("/Pictures/CTI.Number 0131.Core Set.Stroke It!.03.png","Core Set");
settext("Your stroke count is now 5.");
}
@Override
public int chance(){
if(slideviewer.getStrokerate()/1000 == 5){
return 0;
}
return (int) (slideviewer.getSlideduration()/1000 < 5?
200/Math.pow((double)(5*1000)/slideviewer.getSlideduration(),2)
: 200/Math.pow((double)slideviewer.getSlideduration()/(5*1000),2));
}
@Override
public void main() {
slideviewer.setStrokerate(5);
}
}
- CTI.Number 0131.Core Set.Stroke It!.03.png (371.04 KiB) Viewed 7056 times
- CTI.Number 0131.Core Set.Stroke It!.04 | +
Code: Select all
/* Author: Number0131
* Description:
* Strokecount = 10
* The chance to draw this card gets higher if the slideduration is near 10.
*/
package Teaseviewer.Cards.Stroke_It.CoreSet;
import Teaseviewer.Cards.CTI_Card;
public class CTI2_CoreSet_Stroke_It_004 extends CTI_Card{
public CTI2_CoreSet_Stroke_It_004(){
super("/Pictures/CTI.Number 0131.Core Set.Stroke It!.04.png","Core Set");
settext("Your stroke count is now 10.");
}
@Override
public int chance(){
if(slideviewer.getStrokerate() == 10){
return 0;
}
return (int) (slideviewer.getSlideduration()/1000 < 10?
200/Math.pow((double)(10*1000)/slideviewer.getSlideduration(),2)
: 200/Math.pow((double)slideviewer.getSlideduration()/(10*1000),2));
}
@Override
public void main() {
slideviewer.setStrokerate(10);
}
}
- CTI.Number 0131.Core Set.Stroke It!.04.png (474.37 KiB) Viewed 7056 times
If you can find any of the original CoreSet pictures (not the card itself) pls post a link ;D